package com.spring.starter;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author TW
 */
@Configuration
public class CDplayerConfig {
    @Bean
    public CDPlayer cdPlayer(@Qualifier("sgtPeppers1") CompactDisc compactDisc){
        return new CDPlayer(compactDisc);
    }
}
